document.write("<table>");
for (var kk = 1; kk <= 9; kk++) {
    document.write("<tr>");
    for (var i = 1; i <= kk; i++) {
        document.write("<td>");
        document.write(i + "x" + kk + "=" + kk * i );
        document.write("</td>");
    }
    document.write("</tr>");
}
document.write("</table>");


